package com.zbkj.admin.vo;

import com.zbkj.dal.entity.product.ProductTab;
import lombok.Data;

/**
 * @author tianzhonghai
 * 2023/12/3 15:25
 */
@Data
public class OptionItemVO {
    private String code;
    private String name;
    private Integer sort;
    private Integer enable;

    public static OptionItemVO buildByProductTab(ProductTab productTab) {
        OptionItemVO optionItemVO = new OptionItemVO();
        optionItemVO.setCode(productTab.getTabCode());
        optionItemVO.setName(productTab.getTabName());
        optionItemVO.setSort(productTab.getSort());
        optionItemVO.setEnable(productTab.getEnable());
        return optionItemVO;
    }
}
